// stdafx.h 
#ifndef _STDAFX_H_
#define  _STDAFX_H_

#ifdef WIN32

#include <winsock2.h>   
#include <stdio.h>   
#include <windows.h>   
#include <tchar.h>
#pragma comment(lib,"ws2_32.lib")   




#else
#include "complatform.h" 
#include <stdio.h>   
#include <stdlib.h>   
#include <errno.h>   
#include <string.h>   
#include <sys/types.h>   
#include <netinet/in.h>   
#include <sys/socket.h>   
#include <netdb.h>   
#include <sys/wait.h>   
#include <arpa/inet.h> 
typedef int SOCKET;
typedef unsigned short WORD;
#define Sleep(n) usleep((n)*1000)
#define SOCKADDR_IN sockaddr_in
#define FALSE false

//const int INVALID_SOCKET = -1;
//const int SOCKET_ERROR = -1;
static unsigned long ___epoll_max = 65535;
typedef struct sockaddr  *LPSOCKADDR;
typedef struct linger LINGER;
typedef sockaddr SOCKADDR;

#endif

#include <log4cplus/logger.h>
#include <log4cplus/configurator.h>
#include <log4cplus/helpers/stringhelper.h>
using namespace log4cplus;
#include <sstream>

const int MIN_BUFF_SIZE = 512;

extern "C"
{
#include "lua/lua.h"
#include "lua/lualib.h"
#include "lua/lauxlib.h"
}

#endif 
